package com.grj.parking.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;

/**
 * 停车记录表
 * @TableName parking_record
 */
@TableName(value ="parking_record")
@Data
public class ParkingRecord implements Serializable {
    /**
     * 记录ID
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 租户ID
     */
    @TableField(value = "tenant_id")
    private Long tenantId;

    /**
     * 停车场ID
     */
    @TableField(value = "lot_id")
    private Long lotId;

    /**
     * 记录编号
     */
    @TableField(value = "record_no")
    private String recordNo;

    /**
     * 车牌号
     */
    @TableField(value = "license_plate")
    private String licensePlate;

    /**
     * 车辆类型
     */
    @TableField(value = "vehicle_type")
    private String vehicleType;

    /**
     * 车位ID
     */
    @TableField(value = "space_id")
    private Long spaceId;

    /**
     * 车位编号
     */
    @TableField(value = "space_number")
    private String spaceNumber;

    /**
     * 入场时间
     */
    @TableField(value = "entry_time")
    private Date entryTime;

    /**
     * 入场图片
     */
    @TableField(value = "entry_image")
    private String entryImage;

    /**
     * 离场时间
     */
    @TableField(value = "exit_time")
    private Date exitTime;

    /**
     * 离场图片
     */
    @TableField(value = "exit_image")
    private String exitImage;

    /**
     * 停车时长(小时)
     */
    @TableField(value = "duration")
    private BigDecimal duration;

    /**
     * 费用(元)
     */
    @TableField(value = "amount")
    private BigDecimal amount;

    /**
     * 优惠金额
     */
    @TableField(value = "discount_amount")
    private BigDecimal discountAmount;

    /**
     * 实付金额
     */
    @TableField(value = "actual_amount")
    private BigDecimal actualAmount;

    /**
     * 支付状态(0-未支付,1-已支付)
     */
    @TableField(value = "payment_status")
    private Integer paymentStatus;

    /**
     * 状态(0-停车中,1-已离场)
     */
    @TableField(value = "status")
    private Integer status;

    /**
     * 操作员
     */
    @TableField(value = "operator")
    private String operator;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time")
    private Date updateTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}